package com.wanji.gateway.event;

import com.wanji.protocol.api.DeviceMessage;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;


@Getter
@Setter
public class DeviceMessageEvent extends ApplicationEvent {
    private final DeviceMessage message;
    private final String deviceId;

    public DeviceMessageEvent(Object source, DeviceMessage message, String deviceId) {
        super(source);
        this.message = message;
        this.deviceId = deviceId;
    }
}